package cn.ccimage.passwordkeeper;

import java.util.Random;

/**
 * Created by Administrator on 2017/8/29.
 */

public class PasswordLogic {
    public static String generateCode(int len) {
        long time=System.currentTimeMillis();
        Random rnd = new Random(time);
        String code = "";
        while(len > code.length()){
            code += rnd.nextInt(10);
        }
        return code;
    }
}
